/**
 * 
 */
package com.wsd.service;

import java.util.Date;
import java.util.List;

import com.wsd.bean.OrderList;
import com.wsd.bean.ProductOrder;

/**
 * @author Administrator
 *
 */
public interface OrderService {

	/**
	 * @param order
	 * @param start
	 * @param limit
	 * @return
	 */
	List<ProductOrder> findByExample(ProductOrder order, int start, int limit);

	/**
	 * @param order
	 * @return
	 */
	int findByExampleCount(ProductOrder order);

	/**
	 * @return
	 */
	int findAllCount();

	/**
	 * @param start
	 * @param limit
	 * @return
	 */
	List<ProductOrder> findAll(int start, int limit);

	/**
	 * @param ids
	 * @param state
	 */
	void updateState(int[] ids, boolean state);

	/**
	 * @param oid
	 */
	List<OrderList> findOrderList(int oid);

	/**
	 * @param oid
	 * @return
	 */
	ProductOrder findById(int oid);

	/**
	 * @param key
	 * @return
	 */
	int searchCoun(String key,Date startDate,Date endDate);

	/**
	 * @param key
	 * @param start
	 * @param limit
	 */
	List<ProductOrder> search(String key, Date startDate,Date endDate, int start, int limit);

	/**
	 * @param startDate
	 * @param endDate
	 * @param start
	 * @param limit
	 * @return
	 */
	List<ProductOrder> history(Date startDate, Date endDate, int start, int limit);

	/**
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	int historyCount(Date startDate, Date endDate);
	
}
